package com.zxy.ziems.server.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zxy.ziems.server.domain.Role;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;

/**
 * @author missrain
 * @date 2021/8/30 4:45 下午
 * @Email:wangsiyu-hq@boe.com.cn
 */
@Mapper
public interface RoleMapper extends BaseMapper<Role> {
    List<Role> selectAuthorizedRole(@Param("userId") String userId);

    /**
     * 根据角色id查询角色
     * @param ids
     * @return
     */
    List<Role> selectListByIds(Collection<? extends Serializable> ids);
}
